package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class ColumnMenu {
    @TableId(type = IdType.AUTO)
    private Integer columnMenuId;
    @TableField(value="onelevel_menu_id",target = OnelevelMenu.class)
    private Integer onelevelMenuId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private OnelevelMenu onelevelMenu;
    @TableField(value="twolevel_menu_id",target = TwolevelMenu.class)
    private Integer twolevelMenuId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private TwolevelMenu twolevelMenu;
    private Integer orderNum;
    private Integer visible;
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    private String remark;
}